﻿/*------------------------------------------------
// File Description: CellPara DataBase Entity
// Author:			 Crane
// Create Time:		 2020-06-25 11:45:50
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 电池参数
    /// </summary>
    [Table(nameof(CellPara))]
    public class CellPara : BaseEntity
    {
        private string _paraValue;

        #region Public Property

        ///<Summary>
        /// 参数类型
        ///</Summary>
        public Enum.ParaType ParaType { get; set; }

        ///<Summary>
        /// 参数值
        ///</Summary>
        public string ParaValue
        {
            get { return string.IsNullOrWhiteSpace(_paraValue) ? string.Empty : _paraValue; }
            set { _paraValue = value; }
        }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 电池参数
        /// </summary>
        public virtual DbSet<CellPara> CellParas { get; set; }
    }
}